package com.cc.openeye.find.item.textCardHeader7

import androidx.compose.runtime.Composable
import assest.common.right_jt
import com.cc.openeye.find.entity.find.Item
import com.cc.openeye.height
import com.cc.openeye.padding
import com.cc.openeye.width
import com.tencent.kuikly.compose.foundation.Image
import com.tencent.kuikly.compose.foundation.layout.Box
import com.tencent.kuikly.compose.foundation.layout.Row
import com.tencent.kuikly.compose.foundation.layout.fillMaxWidth
import com.tencent.kuikly.compose.foundation.layout.height
import com.tencent.kuikly.compose.foundation.layout.padding
import com.tencent.kuikly.compose.material3.Text
import com.tencent.kuikly.compose.resources.painterResource
import com.tencent.kuikly.compose.ui.Alignment
import com.tencent.kuikly.compose.ui.Modifier
import com.tencent.kuikly.compose.ui.graphics.Color
import com.tencent.kuikly.compose.ui.layout.ContentScale
import com.tencent.kuikly.compose.ui.text.font.FontWeight
import com.tencent.kuikly.compose.ui.unit.dp
import com.tencent.kuikly.compose.ui.unit.sp

@Composable
fun TextCardHeader7(item: Item) {


    Box(
        modifier = Modifier.fillMaxWidth().padding(start = 15f, end = 15f).height(50.dp),
        contentAlignment = Alignment.CenterStart
    ) {
        Text(
            item.data?.text ?: "",
            color = Color(0xff333333),
            fontSize = 16.sp,
            fontWeight = FontWeight.Bold
        )


        Row(
            modifier = Modifier.align(Alignment.CenterEnd),
            verticalAlignment = Alignment.CenterVertically
        ) {
            Text(
                item.data?.rightText ?: "",
                color = Color(0xff4687d7),
                fontSize = 13.sp,
            )

            Image(
                painter = painterResource(right_jt),
                contentDescription = "蓝色箭头",
                modifier = Modifier
                    .padding(start = 2.dp).width(12f).height(12f),
                contentScale = ContentScale.FillBounds
            )
        }

    }
}